package com.ruoyi.safety.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.safety.mapper.PointValueDictMapper;
import com.ruoyi.safety.domain.PointValueDict;
import com.ruoyi.safety.service.IPointValueDictService;

/**
 * 测点数值类型字典Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
@Service
public class PointValueDictServiceImpl extends ServiceImpl<PointValueDictMapper, PointValueDict> implements IPointValueDictService //修改
{
    @Autowired
    private PointValueDictMapper pointValueDictMapper;

    /**
     * 查询测点数值类型字典
     * 
     * @param pointValueId 测点数值类型字典主键
     * @return 测点数值类型字典
     */
    @Override
    public PointValueDict selectPointValueDictByPointValueId(String pointValueId)
    {
        return pointValueDictMapper.selectPointValueDictByPointValueId(pointValueId);
    }

    /**
     * 查询测点数值类型字典列表
     * 
     * @param pointValueDict 测点数值类型字典
     * @return 测点数值类型字典
     */
    @Override
    public List<PointValueDict> selectPointValueDictList(PointValueDict pointValueDict)
    {
        return pointValueDictMapper.selectPointValueDictList(pointValueDict);
    }

    /**
     * 新增测点数值类型字典
     * 
     * @param pointValueDict 测点数值类型字典
     * @return 结果
     */
    @Override
    public int insertPointValueDict(PointValueDict pointValueDict)
    {
        return pointValueDictMapper.insertPointValueDict(pointValueDict);
    }

    /**
     * 修改测点数值类型字典
     * 
     * @param pointValueDict 测点数值类型字典
     * @return 结果
     */
    @Override
    public int updatePointValueDict(PointValueDict pointValueDict)
    {
        return pointValueDictMapper.updatePointValueDict(pointValueDict);
    }

    /**
     * 批量删除测点数值类型字典
     * 
     * @param pointValueIds 需要删除的测点数值类型字典主键
     * @return 结果
     */
    @Override
    public int deletePointValueDictByPointValueIds(String[] pointValueIds)
    {
        return pointValueDictMapper.deletePointValueDictByPointValueIds(pointValueIds);
    }

    /**
     * 删除测点数值类型字典信息
     * 
     * @param pointValueId 测点数值类型字典主键
     * @return 结果
     */
    @Override
    public int deletePointValueDictByPointValueId(String pointValueId)
    {
        return pointValueDictMapper.deletePointValueDictByPointValueId(pointValueId);
    }

    @Override
    public PointValueDict selectPointValueDictByPointCode(String datum) {
        return pointValueDictMapper.selectPointValueDictByPointCode(datum);
    }
}
